<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::DrObject&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="classdrogon_1_1DrObject.html">DrObject</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="classdrogon_1_1DrObject-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::DrObject&lt; T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="DrObject_8h_source.html">DrObject.h</a>&gt;</code></p>
<div class="dynheader">
类 drogon::DrObject&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="classdrogon_1_1DrObject__inherit__graph.png" border="0" usemap="#adrogon_1_1DrObject_3_01T_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="adrogon_1_1DrObject_3_01T_01_4_inherit__map" id="adrogon_1_1DrObject_3_01T_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="217,255,388,281"/>
<area shape="rect" href="classdrogon_1_1DrTemplate.html" title=" " alt="" coords="467,5,617,45"/>
<area shape="poly" title=" " alt="" coords="311,241,328,200,355,150,390,99,434,55,465,38,468,43,438,59,394,103,359,153,333,203,316,243"/>
<area shape="rect" href="classdrogon_1_1HttpFilter.html" title=" " alt="" coords="468,69,616,109"/>
<area shape="poly" title=" " alt="" coords="317,242,365,181,398,148,435,119,466,104,469,109,437,124,401,152,369,184,322,245"/>
<area shape="rect" href="classdrogon_1_1HttpFilter.html" title=" " alt="" coords="467,133,617,173"/>
<area shape="poly" title=" " alt="" coords="331,245,379,214,435,184,468,171,470,176,437,189,382,219,334,250"/>
<area shape="rect" href="classdrogon_1_1DrTemplate.html" title=" " alt="" coords="448,198,636,223"/>
<area shape="poly" title=" " alt="" coords="369,249,435,233,487,221,489,226,437,239,371,255"/>
<area shape="rect" href="classdrogon_1_1HttpController.html" title="The reflection base class template for HTTP controllers" alt="" coords="459,248,625,288"/>
<area shape="poly" title=" " alt="" coords="402,265,458,265,458,271,402,271"/>
<area shape="rect" href="classdrogon_1_1HttpFilter.html" title="The reflection base class template for filters" alt="" coords="465,312,619,352"/>
<area shape="poly" title=" " alt="" coords="365,282,467,309,466,314,364,287"/>
<area shape="rect" href="classdrogon_1_1HttpMiddleware.html" title="The reflection base class template for middlewares" alt="" coords="453,376,631,416"/>
<area shape="poly" title=" " alt="" coords="330,288,378,325,437,362,465,373,463,378,435,366,375,330,327,292"/>
<area shape="rect" href="classdrogon_1_1HttpSimpleController.html" title="The reflection base class template for HTTP simple controllers" alt="" coords="436,440,648,480"/>
<area shape="poly" title=" " alt="" coords="320,291,367,359,400,395,437,426,459,437,457,442,435,430,396,399,363,362,316,294"/>
<area shape="rect" href="classdrogon_1_1WebSocketController.html" title="The reflection base class template for WebSocket controllers" alt="" coords="437,504,647,544"/>
<area shape="poly" title=" " alt="" coords="315,293,331,336,357,389,393,444,414,468,438,490,457,502,454,506,434,494,410,472,388,447,353,392,326,338,310,295"/>
<area shape="rect" href="classdrogon_1_1DrObjectBase.html" title="The base class for all drogon reflection classes." alt="" coords="5,255,169,281"/>
<area shape="poly" title=" " alt="" coords="183,265,217,265,217,271,183,271"/>
<area shape="rect" href="classdrogon_1_1NotFound.html" title="This class is used by the drogon to generate the 404 page. Users don&#39;t use this class directly." alt="" coords="713,13,851,38"/>
<area shape="poly" title=" " alt="" coords="631,23,713,23,713,28,631,28"/>
<area shape="rect" href="classdrogon_1_1IntranetIpFilter.html" title="A filter that prohibit access from external networks" alt="" coords="697,77,867,102"/>
<area shape="poly" title=" " alt="" coords="630,87,697,87,697,92,630,92"/>
<area shape="rect" href="classdrogon_1_1LocalHostFilter.html" title="A filter that prohibit access from other hosts." alt="" coords="696,141,868,166"/>
<area shape="poly" title=" " alt="" coords="631,151,696,151,696,156,631,156"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
drogon::DrObject&lt; T &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="classdrogon_1_1DrObject__coll__graph.png" border="0" usemap="#adrogon_1_1DrObject_3_01T_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="adrogon_1_1DrObject_3_01T_01_4_coll__map" id="adrogon_1_1DrObject_3_01T_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,79,176,104"/>
<area shape="rect" href="classdrogon_1_1DrObjectBase.html" title="The base class for all drogon reflection classes." alt="" coords="9,5,173,31"/>
<area shape="poly" title=" " alt="" coords="93,44,93,79,88,79,88,44"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af9339c889b7564b0222b25f42d5a07f1" id="r_af9339c889b7564b0222b25f42d5a07f1"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObject.html#af9339c889b7564b0222b25f42d5a07f1">className</a> () const override</td></tr>
<tr class="memdesc:af9339c889b7564b0222b25f42d5a07f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the class name  <br /></td></tr>
<tr class="separator:af9339c889b7564b0222b25f42d5a07f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51a4b49229662565393999a573549d91" id="r_a51a4b49229662565393999a573549d91"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObject.html#a51a4b49229662565393999a573549d91">isClass</a> (const std::string &amp;class_name) const override</td></tr>
<tr class="memdesc:a51a4b49229662565393999a573549d91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the class name is 'class_name'  <br /></td></tr>
<tr class="separator:a51a4b49229662565393999a573549d91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classdrogon_1_1DrObjectBase"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classdrogon_1_1DrObjectBase')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classdrogon_1_1DrObjectBase.html">drogon::DrObjectBase</a></td></tr>
<tr class="memitem:a3a57e74527aea2d71d9f471b39c70d1b inherit pub_methods_classdrogon_1_1DrObjectBase" id="r_a3a57e74527aea2d71d9f471b39c70d1b"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObjectBase.html#a3a57e74527aea2d71d9f471b39c70d1b">~DrObjectBase</a> ()</td></tr>
<tr class="separator:a3a57e74527aea2d71d9f471b39c70d1b inherit pub_methods_classdrogon_1_1DrObjectBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af230f756b629164dce22b02d218525c1" id="r_af230f756b629164dce22b02d218525c1"><td class="memItemLeft" align="right" valign="top">static const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObject.html#af230f756b629164dce22b02d218525c1">classTypeName</a> ()</td></tr>
<tr class="separator:af230f756b629164dce22b02d218525c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a40297265c7f2318938e4fb159b26aa7b" id="r_a40297265c7f2318938e4fb159b26aa7b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObject.html#a40297265c7f2318938e4fb159b26aa7b">DrObject</a> ()=default</td></tr>
<tr class="separator:a40297265c7f2318938e4fb159b26aa7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86f55fd2a033d31e1811e60a525c33ad" id="r_a86f55fd2a033d31e1811e60a525c33ad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1DrObject.html#a86f55fd2a033d31e1811e60a525c33ad">~DrObject</a> () override=default</td></tr>
<tr class="separator:a86f55fd2a033d31e1811e60a525c33ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class drogon::DrObject&lt; T &gt;</div><p>a class template to implement the reflection function of creating the class object by class name </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a40297265c7f2318938e4fb159b26aa7b" name="a40297265c7f2318938e4fb159b26aa7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40297265c7f2318938e4fb159b26aa7b">&#9670;&#160;</a></span>DrObject()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1DrObject.html">drogon::DrObject</a>&lt; T &gt;::DrObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a86f55fd2a033d31e1811e60a525c33ad" name="a86f55fd2a033d31e1811e60a525c33ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86f55fd2a033d31e1811e60a525c33ad">&#9670;&#160;</a></span>~DrObject()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrogon_1_1DrObject.html">drogon::DrObject</a>&lt; T &gt;::~<a class="el" href="classdrogon_1_1DrObject.html">DrObject</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af9339c889b7564b0222b25f42d5a07f1" name="af9339c889b7564b0222b25f42d5a07f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9339c889b7564b0222b25f42d5a07f1">&#9670;&#160;</a></span>className()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; <a class="el" href="classdrogon_1_1DrObject.html">drogon::DrObject</a>&lt; T &gt;::className </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the class name </p>
<dl class="section return"><dt>返回</dt><dd>const std::string&amp; the class name </dd></dl>

<p>重载 <a class="el" href="classdrogon_1_1DrObjectBase.html#a3b6f9f93fce1cb61c43bebea00b77582">drogon::DrObjectBase</a> .</p>

</div>
</div>
<a id="af230f756b629164dce22b02d218525c1" name="af230f756b629164dce22b02d218525c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af230f756b629164dce22b02d218525c1">&#9670;&#160;</a></span>classTypeName()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const std::string &amp; <a class="el" href="classdrogon_1_1DrObject.html">drogon::DrObject</a>&lt; T &gt;::classTypeName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a51a4b49229662565393999a573549d91" name="a51a4b49229662565393999a573549d91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51a4b49229662565393999a573549d91">&#9670;&#160;</a></span>isClass()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classdrogon_1_1DrObject.html">drogon::DrObject</a>&lt; T &gt;::isClass </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>class_name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return true if the class name is 'class_name' </p>

<p>重载 <a class="el" href="classdrogon_1_1DrObjectBase.html#a847a57ab1e5cac6e70a910ae5e3f759b">drogon::DrObjectBase</a> .</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="DrObject_8h_source.html">DrObject.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
